<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>javascript</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body>
<script>
function displaydate(){
 document.getElementById("demo").innerHTML=Date();
}
function funcover(a){
 a.innerHTML="Hello world"
}
function funcout(b){
b.innerHTML="Thanks"
}
</script>
<div onmouseover="funcover(this)" onmouseout="funcout(this)" style="background-color:#FF0000; width:200px; height: 50px;"> Mouse over Me</div>

<p id="demo"></p>
<button onclick="displaydate()">Try click</button>
</body>
</html>
